
#ifndef __BEEP_H__
#define __BEEP_H__

#include "stm32f4xx.h"                  // Device header



#define BEEP_RCC_ADDR      (volatile unsigned int *)(0x40023800 + 0x30)
#define GPIOB_Base 			(0x40020400)
#define BEEP_MODE_ADDR       (volatile unsigned int *)(GPIOB_Base + 0x00)
#define BEEP_OTYPE_ADDR       (volatile unsigned int *)(GPIOB_Base + 0x04)
#define BEEP_SPEED_ADDR       (volatile unsigned int *)(GPIOB_Base + 0x08)	
#define BEEP_PUPDR_ADDR       (volatile unsigned int *)(GPIOB_Base + 0x0C)	
#define BEEP_0DR_ADDR       (volatile unsigned int *)(GPIOB_Base + 0x14)	




#define BEEP_OFF()   GPIO_ResetBits(GPIOB,GPIO_Pin_10)
#define BEEP_ON()   GPIO_SetBits(GPIOB,GPIO_Pin_10)

void BEEP_Config(void);


void beep_Config(void);


#endif
